<!doctype html>
<html lang="en">
<head>
    @include('web.layout.head')
    <link rel="stylesheet" href="{{asset('/control/city_linkage/css/city-picker.css')}}"/>
    <link rel="stylesheet" href="{{asset('/css/web/user/pw_revise.css')}}">
</head>
<body>
@include('web.layout.header')
@include('web.layout.user_tab')
<div class="base_member_content">
    <div class="w1200">
        @include('web.layout.member_nav')
        <div class="nav_right flr">
            <div class="base_content">
                <div class="line_title">登录密码修改</div>
                <div class="revise_subnav">
                    <ul>
                        <li>验证身份</li>
                        <li class="cur">修改登录密码</li>
                        <li>完成</li>
                    </ul>
                </div>
                <div class="revise_content">
                    <div class="box">
                        <form action="{{URL('member/user/pwd_reviseth')}}" method="post" onsubmit="return frm_data_check();" id="js-frm-pwrevise">
                            <ul>
                                <li>
                                    <span>新的登录密码：</span>
                                    <input name='pwd' id='pwd' type="password" class="se getborder">
                                    <p class="jm_error"></p>
                                </li>
                                <li>
                                    <span>请再输入一次密码：</span>
                                    <input name='repwd' id='repwd' type="password" class="se getborder">
                                    <p class="jm_error"></p>
                                </li>
                            </ul>
                            <input type="submit" class="jm_btn6 submit" value="下一步">
                            <input type="hidden" name="_token" value="{{csrf_token()}}" />
                        </form>
                    </div>
                </div>
                <div class="tips">
                    <h3>为什么要进行身份验证？</h3>
                    <div class="p">1. 为保障您的账户信息安全，在变更账户中的重要信息时需要进行身份验证，感谢您的理解和支持。<br>2. 验证身份遇到问题？请拨打客服电话400-016-6889。</div>
                </div>
            </div>
        </div>
    </div>
</div>
@include('web.layout.footer')
</body>
<script>
function frm_data_check() {
    var $this = $("#js-frm-pwrevise"),
        _pwd = $this.find('input[name="pwd"]'),
        _repwd = $this.find('input[name="repwd"]');
    if(_pwd.val() == '') {
        _pwd.parent().find('.jm_error').html('新的登录密码 必须填写');
        return false;
    }
    if (_repwd.val() == ''){
        _repwd.parent().find('.jm_error').html('请重复填写新的登录密码');
        return false;
    }
    if (_pwd.val() != _repwd.val()){
        _repwd.parent().find('.jm_error').html('二次填写的登录密码不一致');
        return false;
    }
}
</script>
</html>